<template>
	<view class="padding">
		<view class="search">
			<view class="back">
				<image src="../../static/images/back_blue.png" class="back-icon"></image>
			</view>
			<view class="title">账单</view>
			<image src="../../static/images/pop.png" class="search-icon" @click="show = true"></image>
		</view>
		<view class="bg">
			<view v-for="item in 4" class="item">
				<view class="col" style="justify-content: space-between;margin-bottom: 10px;width: 100%;">
					<view class="desc">2022-11-11 15:35:56</view>
					<view class="row-between-center" style="margin-left: 20px;margin-right: 20px;margin-top: 20px;">
						<view class="name">
							充值
						</view>
						<view class="in">
							1000.00
						</view>
					</view>
				</view>
			</view>
		</view>

		<u-popup :show="show" overlayStyle="background:rgba(255, 255, 255, 0.5)" bgColor="transparent"
			:closeOnClickOverlay="true" @close="close()">
			<view class="col" style="background-color: rgba(255, 255, 255, 0.5);">
				<view class="pop-p" style="background-color: transparent;">
					<view class="pop-buy" style="z-index: 1000;">筛选</view>
					<view class="pop" style="margin-top: -30px;">
						<view :class="[billIndex==index?'item-y':'item-n']" v-for="item,index in list" @click="billIndex = index">
							{{item.name}}
						</view>
						
					</view>

					<view class="row-between" style="width: calc(100% - 90px);margin-top: -30px;">
						<view class="red-cicle">
							<image src="../../static/images/bill_close.png" class="search-icon"></image>
						</view>
						<view class="green-circle" @click="show = false">
							<image src="../../static/images/bill_sure.png" class="search-icon"></image>
						</view>
					</view>
				</view>
				<view style="height: 30px;"></view>
			</view>
		</u-popup>

	</view>
</template>

<script>
	import titlebar from '@/pages/common/titlebar.vue'
	export default {
		components: {
			titlebar
		},
		data() {
			return {
				billIndex:0,
				show: false,
				list: [{
						name: '全部账单',
						value: '0'
					}, {
						name: '取现',
						value: '0'
					}, {
						name: '充值',
						value: '0'
					},
					{
						name: '消费',
						value: '0'
					}, {
						name: '打赏',
						value: '0'
					}, {
						name: '其他',
						value: '0'
					},
				]
			}
		},
		methods: {
			
			close() {
				this.show = false
			},
		}
	}
</script>

<style scoped lang="scss">
	.item-y {
		margin-top: 25px;
		width: 210px;
		height: 70px;
		line-height: 20px;
		border-radius: 15px;
		background-color: rgba(147, 210, 243, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		font-family: Arial;
		border: 3px solid rgba(79, 79, 79, 1);
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.item-n {
		margin-top: 25px;
		width: 200px;
		height: 60px;
		line-height: 20px;
		border-radius: 25px;
		background-color: rgba(248, 248, 248, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		font-family: Arial;
		border: 3px solid rgba(79, 79, 79, 1);
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.green-circle {
		margin-right: 40px;
		width: 60px;
		height: 60px;
		line-height: 20px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		background-color: rgba(129, 179, 55, 1);
		text-align: center;
		border: 5px solid rgba(79, 79, 79, 1);
	}

	.red-cicle {
		margin-left: 40px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 60px;
		height: 60px;
		line-height: 20px;
		background-color: rgba(254, 121, 74, 1);
		text-align: center;
		border: 5px solid rgba(79, 79, 79, 1);
	}

	.pop-p {
		display: flex;
		flex-direction: column;
		align-items: center;
		position: relative;
	}

	.pop {
		align-items: center;
		width: calc(100% - 90px);
		line-height: 20px;
		border-radius: 25px;
		background-color: rgba(255, 255, 255, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		font-family: Arial;
		border: 3px solid rgba(79, 79, 79, 1);
		display: flex;
		flex-direction: column;
		padding-top: 10px;
		padding-bottom: 30px;
	}

	.pop-goods-img {
		margin-top: 14px;
		width: 330px;
		height: 330px;
		border-radius: 15px 15px 0 0;
		background-color: red;
	}

	.pop-img {
		width: 60px;
		height: 60px;
	}

	.pop-name {
		margin-top: 18px;
		color: rgba(16, 16, 16, 1);
		font-size: 36px;
		text-align: left;
		font-family: ZKKuaiLeTi-regular;
	}

	.pop-desc {
		margin-top: 20px;
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: left;
		font-family: ZKKuaiLeTi-regular;
	}

	.pop-price {
		color: rgba(189, 49, 36, 1);
		font-size: 36px;
		text-align: left;
		font-family: ZKKuaiLeTi-regular;
	}

	.pop-buy {
		width: 120px;
		height: 60px;
		line-height: 20px;
		border-radius: 20px;
		background-color: rgba(255, 191, 107, 1);
		text-align: center;
		border: 4px solid rgba(79, 79, 79, 1);
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.pop-back {
		width: 120px;
		height: 60px;
		line-height: 20px;
		border-radius: 20px;
		background-color: rgba(255, 191, 107, 1);
		text-align: center;
		border: 4px solid rgba(79, 79, 79, 1);
	}

	.pop-ccategory {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.pop-content {
		height: 410px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.pop-item {
		margin-left: 35px;
		margin-top: 20px;
		color: rgba(16, 16, 16, 1);
		font-size: 20px;
		text-align: left;
		font-family: ZKKuaiLeTi-regular;
	}

	.pop-end {
		margin-top: 32px;
		color: rgba(16, 16, 16, 1);
		font-size: 28px;
		text-align: right;
		font-family: ZKKuaiLeTi-regular;
	}



	.search {
		padding-left: 10px;
		padding-right: 10px;
		height: 60px;
		line-height: 20px;
		border-radius: 25px;
		background-color: rgba(255, 255, 255, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		font-family: Arial;
		border: 3px solid rgba(79, 79, 79, 1);
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.search-icon {
		width: 40px;
		height: 40px;
	}

	.back {
		width: 40px;
		height: 40px;
		background-color: rgba(147, 210, 243, 1);
		text-align: center;
		border: 3px solid rgba(79, 79, 79, 1);
		display: flex;
		border-radius: 50%;
		align-items: center;
		justify-content: center;
	}

	.back-icon {
		width: 19px;
		height: 19px;
	}

	.title {
		color: rgba(79, 79, 79, 1);
		font-size: 28px;
		font-family: HappyZcool-2016;
	}

	.padding {
			margin-top: 10px;
		margin-left: 20px;
		margin-right: 20px;
	}

	.bg {
		margin-top: 15px;
		padding: 18px 25px 18px 25px;
		line-height: 20px;
		border-radius: 25px;
		background-color: rgba(255, 255, 255, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		font-family: Arial;
		border: 3px solid rgba(79, 79, 79, 1);
	}

	.item {
		margin-top: 10px;
		display: flex;
		padding: 20px 16px 20px 20px;
		width: 100%;
		border-radius: 25px;
		background-color: rgba(255, 255, 255, 1);
		color: rgba(16, 16, 16, 1);
		font-size: 14px;
		text-align: center;
		font-family: Arial;
		border: 3px solid rgba(79, 79, 79, 1);
	}

	.name {
		color: rgba(16, 16, 16, 1);
		font-size: 28px;
		text-align: left;
		font-family: HappyZcool-2016;
	}

	.in {
		color: #951D1D;
		font-size: 28px;
		text-align: left;
		font-family: HappyZcool-2016;
	}

	.out {
		color: #81B337 100%;
		font-size: 28px;
		text-align: left;
		font-family: HappyZcool-2016;
	}

	.desc {
		color: rgba(16, 16, 16, 1);
		font-size: 18px;
		text-align: left;
		font-family: HappyZcool-2016;
	}
</style>